package routers

import (
    "github.com/gin-gonic/gin"
	"route_example/controller"
)

func IndexRoute(rindex *gin.RouterGroup) *gin.RouterGroup {
	r := rindex.Group("index")
	{
		r.GET("testget", controller.TestGet)
		r.POST("testpost", controller.TestPost)
	}
	return r
}